// Bayesian Network
//   Elvira format 

bnet  "classifier naive-Bayes" { 

// Network Properties

kindofgraph = "directed";
visualprecision = "0.00";
version = 1.0;
default node states = (Absent , Present);

// Variables 

node EdadEsposa(finite-states) {
title = "Variable 0";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =142;
pos_y =84;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("s20_24" "s25_29" "s30_34" "s35_40");
}

node NivelEducativoEsposa(finite-states) {
title = "Variable 1";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =128;
pos_y =211;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("medio_bajo" "alto" "medio_alto" "bajo");
}

node NivelEducativoEsposo(finite-states) {
title = "Variable 2";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =140;
pos_y =331;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("medio_bajo" "medio_alto" "alto" "bajo");
}

node CantidadHijosNacidos(finite-states) {
title = "Variable 3";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =617;
pos_y =226;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("s2_3" "s1" "s0" ">=4");
}

node ReligionEsposa(finite-states) {
title = "Variable 4";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =366;
pos_y =350;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("islam" "no_islam");
}

node EsposaTrabaja(finite-states) {
title = "Variable 5";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =580;
pos_y =343;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("no" "si");
}

node OcupacionEsposo(finite-states) {
title = "Variable 6";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =368;
pos_y =83;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("s2" "s3" "s1" "s4");
}

node EstandarVida(finite-states) {
title = "Variable 7";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =597;
pos_y =88;
relevance = 7.0;
purpose = "";
num-states = 4;
states = ("medio_bajo" "medio_alto" "alto" "bajo");
}

node MetodoAnticonceptivo(finite-states) {
title = "MetodoAnticonceptivo ClassNode";
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =375;
pos_y =231;
relevance = 7.0;
purpose = "";
num-states = 3;
states = ("no_usa" "largo_plazo" "corto_plazo");
}

// Links of the associated graph:

link MetodoAnticonceptivo EdadEsposa;

link MetodoAnticonceptivo NivelEducativoEsposa;

link MetodoAnticonceptivo NivelEducativoEsposo;

link MetodoAnticonceptivo CantidadHijosNacidos;

link MetodoAnticonceptivo ReligionEsposa;

link MetodoAnticonceptivo EsposaTrabaja;

link MetodoAnticonceptivo OcupacionEsposo;

link MetodoAnticonceptivo EstandarVida;

//Network Relationships: 

relation EdadEsposa MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.2477 0.1382 0.2183 0.2936 0.2398 0.3185 0.2225 0.2764 0.2539 0.2362 0.3456 0.2093 );
}

relation NivelEducativoEsposa MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.3073 0.1179 0.2517 0.2959 0.6098 0.363 0.3005 0.252 0.3096 0.0963 0.0203 0.0757 );
}

relation NivelEducativoEsposo MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.1376 0.0569 0.1292 0.2638 0.1382 0.2784 0.5665 0.7724 0.5857 0.0321 0.0325 0.0067 );
}

relation CantidadHijosNacidos MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.3303 0.4512 0.4744 0.2477 0.1707 0.1648 0.1858 0.0 0.0022 0.2362 0.3781 0.3586 );
}

relation ReligionEsposa MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.8784 0.7886 0.8686 0.1216 0.2114 0.1314 );
}

relation EsposaTrabaja MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.7041 0.7236 0.784 0.2959 0.2764 0.216 );
}

relation OcupacionEsposo MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.3119 0.2195 0.2806 0.4358 0.3211 0.4788 0.2317 0.439 0.2205 0.0206 0.0204 0.0201 );
}

relation EstandarVida MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.1995 0.1057 0.1693 0.2798 0.3008 0.3163 0.3876 0.561 0.4343 0.1331 0.0325 0.0801 );
}

relation MetodoAnticonceptivo { 
comment = "new";
deterministic=false;
values= table (0.3855 0.2175 0.397 );
}

}
